package com.mvvm.store.ui.into;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;


import com.mvvm.store.base.BaseViewModel;
import com.mvvm.store.base.RepositoryImpl;
import com.mvvm.store.bean.BannerBean;
import com.mvvm.store.bean.StockUpParasBean;
import com.mvvm.store.bean.basebean.HomeFatherBean;
import com.mvvm.store.bean.basebean.IntoSubmitPramsBean;
import com.mvvm.store.bean.basebean.IntoSubmitResultBean;
import com.mvvm.store.bean.basebean.MeterialInfroResultBean;
import com.mvvm.store.bean.basebean.ParamsBuilder;
import com.mvvm.store.bean.basebean.Resource;
import com.mvvm.store.bean.basebean.ResponModel;
import com.mvvm.store.bean.basebean.StockUpResultBean;

import java.io.File;
import java.util.List;

/**
 * Created by leo
 * on 2019/10/16.
 * 入库请求
 * 从每个页面的ViewModel里，就能看出每个页面的功能和联网请求。类似于MVP里的契约类
 */
public class IntoViewModel extends BaseViewModel<RepositoryImpl> {


    public IntoViewModel(@NonNull Application application) {
        super(application);
    }

    //获取入库信息列表数据
    public LiveData<Resource<List<MeterialInfroResultBean>>> getMaterialInfo(String inStockNumber) {
        return getRepository().getMaterialInfo(inStockNumber);
    }
    //入库提交
    public LiveData<Resource<ResponModel>> sumbitInto(IntoSubmitPramsBean intoSubmitPramsBean){
        return  getRepository().submitInto(intoSubmitPramsBean);
    }




}
